<template>
    <div>
        <el-form :inline="true" v-model="jh">
            <el-form-item label="计划主题">
                <el-input v-model="jh.plan_subject"></el-input>
            </el-form-item>
            <el-form-item label="计划日期">
                <el-input v-model="jh.plan_date" type="date"></el-input>
            </el-form-item>
            <el-form-item label="编制人">
                <el-input v-model="jh.editer_id"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="list()">检索</el-button>
            </el-form-item>
        </el-form>
        <h1 style="text-align: center;margin-top: 30px;margin-bottom: 30px">进度计划列表</h1>
        <div>
            <el-table :data="Progress" >
                <el-table-column prop="p_id" label="计划编号" >
                </el-table-column>
                <el-table-column prop="plan_subject" label="计划主题" >
                </el-table-column>
                <el-table-column prop="editer_id" label="编制人" > </el-table-column>
                <el-table-column prop="plan_date" label="计划日期"> </el-table-column>
                <el-table-column prop="project_name" label="项目名称"> </el-table-column>
            </el-table>
        </div>
    </div>
</template>

<script>
    import {ProgressDetailsService} from "../../model/ww/ProgressDetailsService.js";
    const p = ProgressDetailsService.getInstance()
    export default {
        name: "OutputList",
        data(){
            return {
                jh:{} ,//高级检索对象
                Progress:[]  //表格数据
            }

        },
        methods:{
            list(){
                p.list(this.jh).then((response)=>{
                    console.log(response)
                    this.Progress=response.data.data
                })
            }
        },
        created(){
            this.list()
        }

    }
</script>

<style scoped>

</style>